<?php

const CONNECTION_TYPE_MYSQL = 1;
const CONNECTION_TYPE_ORACLE = 2;

const PATH_ROOT = "http://localhost/dinoMVC/";
const PATH_IMG  = "web/img";
const PATH_JS   = "web/js";

$_config = array();

// Connection settings
$_config["connection"]["dbtype"]   = CONNECTION_TYPE_MYSQL;
$_config["connection"]["host"]     = 'localhost';
$_config["connection"]["database"] = 'dino';
$_config["connection"]["sid"]      = 'trash.qa.abank.cz:1521/ob.trash.qa.abank.cz';
$_config["connection"]["username"] = 'root';
$_config["connection"]["password"] = 'heslo';
$_config["connection"]["tableprefix"] = 'roc_';

// background modules
$_config["backgroundmodule"]["active"] = false;
$_config["backgroundmodule"]["modules"] = array("counter");

// debug
$_config["debug"]["enable"] = true;

// password
$_config["password"]["seed"] = "%DiN0_MVC*";

// paths
$_config["path"]["root"] = PATH_ROOT;
$_config["path"]["img"]  = PATH_ROOT.PATH_IMG;
$_config["path"]["js"]   = PATH_ROOT.PATH_JS;


// load module configs
if ($lrHandle = opendir('./configs/')) {
    /* This is the correct way to loop over the directory. */
    while (false !== ($lsFile = readdir($lrHandle))) {
    	if ($lsFile != "." && $lsFile != ".." && $lsFile != "settings.php") {
        	include($lsFile);
        }
    }
    closedir($lrHandle);
}
?>